package com.lucy.property.module.park.device;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author kindear
 *
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "park_device")
@ApiModel(value = "道闸设备")
public class ParkDevice extends BaseEntity implements Serializable {

    @ApiModelProperty("道闸ID")
    @Column(name = "check_point_id")
    String checkPointId;

    @ApiModelProperty("设备名称")
    @Column(name = "device_name")
    String deviceName;

    @ApiModelProperty("设备类型")
    @Column(name = "device_type")
    String deviceType;

    @ApiModelProperty("二维码")
    @Column(name = "bar_code")
    String barCode;

    @ApiModelProperty("停车场ID")
    @Column(name = "parking_lot_id")
    String parkingLotId;

    @ApiModelProperty("停车场名称")
    @Column(name = "parking_lot_name")
    String parkingLotName;


    @ApiModelProperty("协议")
    @Column(name = "agreement")
    String agreement;

    /**
     * 0 关闭
     * 1 正常
     */
    @ApiModelProperty("状态")
    @Column(name = "status")
    Integer status;
}
